import request from '@/utils/request'

// 获取职称列表
export function getTitleList(params) {
  return request({
    url: '/title/list',
    method: 'get',
    params
  })
}

// 根据ID获取职称详情
export function getTitleById(id) {
  return request({
    url: `/title/${id}`,
    method: 'get'
  })
} 